/*
 * @Descripttion: 
 * @version: 
 * @Author: kevin
 * @Date: 2022-12-03 01:41:11
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-02-26 09:35:38
 */
#include "test.h"

#define N (100)
void print(char *ch)
{
    printf("ch is %s\n", ch);
}

int readFile(char *fileName)
{
    FILE *fp;
    char str[N+1];
    fp = fopen(fileName,"r");
    if (fp==NULL)
    {
        puts("Fail to open file!");
        return false;
    }
    while (fgets(str,N,fp)!=NULL)
    {
        printf("%s",str);
    }

    fclose(fp);
    return true;
    
}

bool compare(int a, int b)
{
    if (a > b)
    {
        return true;
    }
    else
    {
        return false;
    }
}